//
//  AVPlaySingle.h
//  UI_Project_A
//
//  Created by GH on 16/3/8.
//  Copyright © 2016年 GH. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import <AVFoundation/AVFoundation.h>


@interface AVPlaySingle : NSObject

@property(nonatomic ,assign)BOOL isTap;
@property(nonatomic ,assign)BOOL isPlay;
@property(nonatomic ,assign)BOOL isScale;

@property (nonatomic ,retain)UIView *viewOftemp;
@property (nonatomic ,retain)UIView *playerView;
@property (nonatomic ,retain)UIView *bottomView;
@property (nonatomic ,retain)UISlider *ProgressSlider;
@property (nonatomic ,retain)UIButton *playerButton;
@property (nonatomic ,retain)UILabel *timeLabel;

@property(nonatomic,retain)AVPlayer *player;
@property(nonatomic,retain)AVPlayerLayer *playerLayer;
@property(nonatomic,retain)AVPlayerItem *playerItem;
@property (nonatomic, assign) CGFloat totalMovieDuration; // 保存该视频资源的总时长，快进或快退的时候要用
@property (nonatomic ,retain)UIButton *buttonFullscreen;
@property (nonatomic ,retain)UIButton *buttonOfback;


+ (instancetype)playerShare;
- (void)playerWtihUrl:(NSString *)url showInview:(UIView *)showview;


@end
